#!/bin/bash
my_ip=`wget -qO - http://ipecho.net/plain`
git pull
echo ${my_ip}
if test -z "${my_ip}"
then
    echo "空" > /usr/local/_myserver_/schedule/publicinfo/ip.txt
    exit 0
fi
echo "${my_ip} home1.v6.army" > /usr/local/_myserver_/schedule/publicinfo/ip.txt
echo "${my_ip} gllj.f3322.net" >> /usr/local/_myserver_/schedule/publicinfo/ip.txt
echo "${my_ip} q1551646b3.iask.in" >> /usr/local/_myserver_/schedule/publicinfo/ip.txt
echo "${my_ip} luozhou.v6.rocks" >> /usr/local/_myserver_/schedule/publicinfo/ip.txt
echo "${my_ip}" > /usr/local/_myserver_/schedule/publicinfo/rawip.txt
cd /usr/local/_myserver_/schedule/publicinfo/ && git add * && git commit -m "testing" && git push -f 
